package com.dao;

import com.entity.Orderdetail;
import com.page.PageInfo;

import java.util.List;

public interface OrderdetailDao {
    public List<Orderdetail> getByOrid(String orid);
    public List<Orderdetail> getAllByPage(PageInfo pageInfo);
    public List<Orderdetail> searchNameByPage(PageInfo pageInfo, String adname);
    /**
     * 根据主键查询
     * @param orid
     * @return
     */
    public Orderdetail getOrderdetailByOrid(String orid);

    /**
     * 添加一个实体
     * @param orderdetail
     * @return
     */
    public int addOrderdetail(Orderdetail orderdetail);
    /**
     * 修改实体
     */
    public int updateOrderdetail(Orderdetail orderdetail);
    public int updateOrderdetailByExample(Orderdetail orderdetail);

    /**
     * 删除一个实体
     * @param orid
     * @return
     */
    public int deleteOrderdetailByPrimayKey(String orid);

    /**
     * 删除实体根据示例
     * @return
     */
    public int deleteOrderdetailByExample();
}
